package com.yhb.dao;

import com.yhb.model.BranchBank;
import com.yhb.model.Card;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CardMapper {
    int addCard(@Param("card") Card card);
    Card getCard(@Param("id") String id);
    Card getCardByNumber(@Param("number") String number);
    Card userDefaultCard(@Param("userId") String userId);

    int modifyCard(@Param("card") Card card);
    int removeCard(@Param("cardId")String cardId);

    List<Card> getCardByUserId(@Param("userId") String userId);

    List<BranchBank> searchSubBanks(@Param("bankName") String bankName, @Param("province") String province, @Param("city") String city);
}
